Working With Android Edit Text Controls

Applies to TestComplete 15.68, last modified on October 16, 2024

Edit text (EditText) controls are used to work with text. A user can enter text into it as well as select, copy, cut and paste text. TestComplete provides extended support for Android edit text controls.

Please note that the maximum character limit for text input is 259 characters.

TestComplete analyzes the control class names and automatically creates wrapper Android EdtText test objects for edit text controls. These objects contain specific methods and properties for simulating user actions on editing text and for retrieving their data.

Supported edit text classes are listed in the project’s Object Mapping options. You can extend this list, for example, add the class name of a custom edit text control used in your tested application, and thus enable the recording and scripting support for this control. For more information, see Object Mapping.

Note: The described support is available only if the tested Android application is Open, that is, if it was prepared for TestComplete (see Preparing Android Applications (Legacy)).

The topics in this section provide detailed information about working with edit text controls in TestComplete and contain script samples that illustrate the explanation.

In This Section

Getting the Edit Text Control's Text

Describes the approaches that can be used to get data stored in the EditText control.

Entering Text into an Edit Text Control

Describes how to enter text to and delete text from the EditText control.

Copying and Pasting Text in an Edit Text Control

Describes how to get data from an EditText control to the clipboard and insert data from the clipboard to an EditText control.

Selecting Text Within the Edit Text Control

Describes the approaches that can be used to select text within an EditText control.

Working With AutoCompleteTextView

Describes the approaches that can be used to work with AutoCompleteTextView.

Working With Multiline Edit Text Controls

Describes the approaches that can be used to select text within an EditText control.

Related Topics of Interest

Simulating Local Symbol Input (Legacy)

Describes specifics of working with multiline controls.

Testing Android Open Applications (Legacy)

Explains the most common approaches for working with Android Open applications.

Simulating Gestures (Multi-Touch Events) (Legacy)

Contains information on how to simulate multitouch actions in your scripts.

Simulating User Actions Over Android Devices (Legacy)

Explains the most common approaches for simulating user actions over Android applications’ controls.

See Also

Android EditText Support
Testing Android Applications (Legacy)
Simulating Text Input on Android Devices (Legacy)

Highlight search results